package com.naiterui.ehp.bs.search.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import java.io.Serializable;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 诊断库-BG95(DrDiagnosisGb95)实体类
 *
 * @author guoyongxiang
 * @since 2020-09-18 13:36:26
 */
@Data
@Entity
@Table(name = "dr_diagnosis_gb95")
public class DiagnosisGb95 implements Serializable {
    private static final long serialVersionUID = -84078538332306154L;

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;

    /**
     * 主编码
     */
    @Column(name = "main_code")
    private String mainCode;

    /**
     * 辨病
     */
    @Column(name = "name")
    private String name;


    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;


}